package com.briup.mybatis01code.entity.extend;

import com.briup.mybatis01code.entity.Book;
import com.briup.mybatis01code.entity.Category;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BookExtend extends Book {
    Category category;


    @Override
    public String toString() {
        return super.toString()+ "BookExtend{" +
                "category=" + category +
                '}';
    }
}
